<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pt-BR">
	<head>
		<?php echo $this->render('/includes/head.phtml'); ?>
		<link type="text/css" rel="stylesheet" media="all" href="<?php echo $this->baseUrl . '/skin/css/' . $this->module . '/' . $this->controller; ?>"/>
		<!--[if lte IE 8]>
			<link type="text/css" rel="stylesheet" media="all" href="<?php echo $this->baseUrl . '/skin/' . $this->module; ?>/css/ie8.css"/>			
		<![endif]-->
		<script type="text/javascript" src="<?php echo $this->baseUrl . '/skin/js/' . $this->module . '/' . $this->controller; ?>"></script>
		<?php echo $this->render('/includes/script.phtml'); ?>
	</head>
	<body id="page-<?php echo $this->controller . '-' . $this->action; ; ?>">
		<div id="main">
			<div id="header">
				<h1><a href="<?php echo $this->baseUrl; ?>/admin"><?php echo $this->title[0]; ?></a></h1>
				<?php if ($this->auth): ?>
				<div id="nav">
					<ul>
						<li><a id="nav-home" href="<?php echo $this->baseUrl; ?>/admin" title="Home">Home</a></li>
						<li><a id="nav-user" href="<?php echo $this->baseUrl; ?>/admin/usuario/edit/id/<?php echo $this->auth->id; ?>" title="Usuário">Usuário</a></li>
						<li><a id="nav-logoff" href="<?php echo $this->baseUrl; ?>/admin/login/logoff" title="Sair">Sair</a></li>
					</ul>
				</div>
				<?php endif; ?>
			</div>
			<div id="content">
				<?php if ($this->auth): ?>
				<div id="column-right">
					<?php echo $this->render('includes/nav-right.phtml'); ?>
				</div>
				<?php endif; ?>
				<div id="column-left">
				<?php echo $this->layout()->content; ?>
				</div>
			</div>
		</div>
	</body>
</html>